package com.tancire.net.service;

import java.util.List;
import com.tancire.net.domain.CrmCompanyIncomeDetail;

/**
 * 收益明细Service接口
 *
 * @author chenchao
 * @date 2023-12-25
 */
public interface ICrmCompanyIncomeDetailService {
    /**
     * 查询收益明细
     *
     * @param id 收益明细主键
     * @return 收益明细
     */
    CrmCompanyIncomeDetail selectCrmCompanyIncomeDetailById(Long id);

    /**
     * 查询收益明细列表
     *
     * @param crmCompanyIncomeDetail 收益明细
     * @return 收益明细集合
     */
    List<CrmCompanyIncomeDetail> selectCrmCompanyIncomeDetailList(CrmCompanyIncomeDetail crmCompanyIncomeDetail);

    /**
     * 新增收益明细
     *
     * @param crmCompanyIncomeDetail 收益明细
     * @return 结果
     */
    int insertCrmCompanyIncomeDetail(CrmCompanyIncomeDetail crmCompanyIncomeDetail);

    /**
     * 修改收益明细
     *
     * @param crmCompanyIncomeDetail 收益明细
     * @return 结果
     */
    int updateCrmCompanyIncomeDetail(CrmCompanyIncomeDetail crmCompanyIncomeDetail);

    /**
     * 批量删除收益明细
     *
     * @param ids 需要删除的收益明细主键集合
     * @return 结果
     */
    int deleteCrmCompanyIncomeDetailByIds(Long[] ids);

    /**
     * 删除收益明细信息
     *
     * @param id 收益明细主键
     * @return 结果
     */
    int deleteCrmCompanyIncomeDetailById(Long id);

    /**
     * 删除明细表数据
     *
     * @param id
     */
    void deleteByTaskId(Long id);

    /**
     * 查询饼图数据
     *
     * @param crmCompanyIncomeDetail
     * @return
     */
    List<CrmCompanyIncomeDetail> selectCompanyIncomeDetailList(CrmCompanyIncomeDetail crmCompanyIncomeDetail);

    /**
     * 更新预估收益
     *
     * @param detail
     */
    void updateIncomeAmount(CrmCompanyIncomeDetail detail);
}
